package mylab.base.model;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import mylab.base.IdName;

import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class BaseIdPojo<K extends Serializable> extends BasePojo implements IdName<K> {

    protected K id;

    @ApiModelProperty(value = "名称")
    @TableField
    protected String name;

}
